:root {
    --primary: #00A1F1;
    --primary-dark: #008bd1;
    --primary-light: rgba(0, 161, 241, 0.1);
    --primary-glow: rgba(0, 161, 241, 0.35);

    --success: #10b981;
    --danger: #ef4444;

    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
    --bg-soft: #f8fafc;
    --white: #ffffff;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Body */
body {
    min-height: 100vh;
    background: linear-gradient(135deg, #00A1F1, #0090db);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Soft background glow */
body::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 70%);
    top: -200px;
    left: -200px;
    animation: float 8s ease-in-out infinite alternate;
}

@keyframes float {
    from { transform: translateY(0px); }
    to { transform: translateY(40px); }
}

/* Container */
.login-container {
    width: 100%;
    max-width: 480px;
    animation: fadeUp 0.6s ease;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card */
.login-card {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(14px);
    border-radius: 28px;
    padding: 45px 35px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255,255,255,0.4) inset;
    transition: 0.4s ease;
}

.login-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.22),
        0 0 0 1px rgba(255,255,255,0.6) inset;
}

/* Logo */
.logo {
    text-align: center;
    margin-bottom: 25px;
}

.logo img {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 12px 30px var(--primary-glow);
    margin-bottom: 10px;
}

.logo h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Titles */
h1 {
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.subtitle {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Alerts */
.alert {
    padding: 15px 18px;
    border-radius: 14px;
    font-size: 13px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeUp 0.3s ease;
}

.alert-error {
    background: #fee2e2;
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-success {
    background: #dcfce7;
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert i {
    font-size: 16px;
}

/* Form */
.form-group {
    margin-bottom: 22px;
}

.label-with-icon {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Input */
.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    transition: 0.3s;
}

.input-wrapper .toggle-password {
    left: auto;
    right: 14px;
    cursor: pointer;
}

.input-wrapper .toggle-password:hover {
    color: var(--primary);
}

.input-field {
    width: 100%;
    padding: 15px 45px;
    border-radius: 14px;
    border: 2px solid var(--border-light);
    background: var(--bg-soft);
    font-size: 14px;
    transition: 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.input-wrapper:focus-within i {
    color: var(--primary);
}

/* Password Requirements */
.password-requirements {
    margin-top: 15px;
    padding: 16px;
    background: var(--bg-soft);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.requirements-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.requirements-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.requirements-list li {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Button */
.btn {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 12px 30px var(--primary-glow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px var(--primary-glow);
}

.btn:active {
    transform: translateY(0);
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 25px 0;
    font-size: 12px;
    color: #94a3b8;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: var(--border-light);
}

/* Back to login */
.register-link {
    text-align: center;
}

.register-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.register-link a:hover {
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }

    h1 {
        font-size: 22px;
    }
}